﻿@model IEnumerable<Stardust.Models.HotelViewModelList>

@{
    ViewBag.Title = "Listar Hoteles";
}


<div class="wrapper">
    <div class="widget">
      <div class="title"><h6>Lista de Hoteles</h6></div>
      <div class="dataTables_wrapper">
        <table cellpadding = "0" cellspacing = "0" width = "100%" class = "display dTable">
        <thead>
        <tr>
            <th class="ui-state-default" rowspan="1" colspan="1" style="width:160px;">
                <div class="DataTables_sort_wrapper">
                Nombre
                <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                </div>
             </th>
            <th class="ui-state-default" rowspan="1" colspan="1" style="width:160px;" >
                <div class="DataTables_sort_wrapper">
                Razón Social
                <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                </div>
             </th>
               <th class="ui-state-default" rowspan="1" colspan="1" style="width:120px;" >
                <div class="DataTables_sort_wrapper">
                Departamento
                <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                </div>
             </th>
               <th class="ui-state-default" rowspan="1" colspan="1" style="width:120px;" >
                <div class="DataTables_sort_wrapper">
                Provincia
                <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                </div>
             </th>
             <th class="ui-state-default" rowspan="1" colspan="1" style="width:120px;" >
                <div class="DataTables_sort_wrapper">
                Distrito
                <span class="DataTables_sort_icon css_right ui-icon ui-icon-triangle-1-s"></span>
                </div>
             </th>
            <th class="ui-state-default" rowspan="1" colspan="1">

             </th>
        </tr>
    </thead>

    <tbody>
    @foreach (var item in Model)
    {
        <tr class="gradeA odd">
            <td>@Html.DisplayFor(modelItem => item.nombre)</td>
            <td>@Html.DisplayFor(modelItem => item.razonSocial)</td>
            <td>@Html.DisplayFor(modelItem => item.nombreDepartamento)</td>
            <td>@Html.DisplayFor(modelItem => item.nombreProvincia)</td>
            <td>@Html.DisplayFor(modelItem => item.nombreDistrito)</td>
            <td>
                <a href="@Url.Action("Detalles", new { id = item.ID })"><img src="../../Content/images/icons/color/edit-column.png", alt="Details" />Detalles </a> | 
                <a href="@Url.Action("ListarServicios", new { id = item.ID })"><img src="../../Content/images/icons/color/notebook.png", alt="Details" />Asignar Servicios</a>   
                
               
                    
            </td>
        </tr>
         
    }
     </tbody>  
</table>
      </div>
        
    </div>
    </div>